import yaml  ,os,sys,json
def json2yaml(data,to_path):

        # 将字典转换为YAML字符串，设置encoding参数为'utf-8'  
    yaml_string = yaml.dump(data, default_flow_style=False,allow_unicode=True, encoding='utf-8')  .decode('utf-8')
    
    # 将YAML字符串写入文件  
    with open(to_path, 'w', encoding='utf-8') as file:  
        print(yaml_string)
        file.write(yaml_string)
    print('保存yaml到',to_path,'成功')
if __name__=='__main__':
    obj={
    "python_path": "D:\\软件\\python3.12\\python.exe",
    "db_save_path": "F:\\昆明兑悦科技有限公司\\work_space(4)\\easy_edit\\_db_dir",
    "static_dir_path": "F:\\昆明兑悦科技有限公司\\work_space(4)\\easy_edit\\_static_dir",
    "权限设置": {
        "0": {
            "color_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "breed_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "variety_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "user_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "PP_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "CP_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "log_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "操作权限": [
                "0",
                "1",
                "2",
                "3"
            ]
        },
        "1": {
            "color_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "breed_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "variety_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "user_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "PP_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "CP_db": {
                "get": True,
                "post": True,
                "put": True,
                "delete": True
            },
            "log_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "操作权限": [
                "2",
                "3"
            ]
        },
        "2": {
            "color_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "breed_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "variety_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "user_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "PP_db": {
                "get": True,
                "post": False,
                "put": True,
                "delete": False
            },
            "CP_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "log_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "操作权限": []
        },
        "3": {
            "color_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "breed_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "variety_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "user_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "PP_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "CP_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "log_db": {
                "get": True,
                "post": False,
                "put": False,
                "delete": False
            },
            "操作权限": []
        }
    },
    "start": {
        "ip": "127.0.0.1",
        "port": 11239
    },
    "process1_db_handle": {
        "ip": "127.0.0.1",
        "port": 12421
    },
    "process2_web_handle": {
        "ip": "127.0.0.1",
        "port": 7999
    },
    "process3_mqtt_handle": {
        "ip": "127.0.0.1",
        "port": 15321
    },
    "process4_UI_handle": {
        "ip": "127.0.0.1",
        "port": 15322
    },
    "db_names": {
        "color_db": "色彩库",
        "breed_db": "品种库",
        "variety_db": "工艺库",
        "user_db": "用户库",
        "PP_db": "加工罐数据库",
        "CP_db": "色素罐数据库"
    },
    "db_config": {
        "color_db": {
            "table_base_info": {
                "名称": "色彩库",
                "备注": "这是用于存储一些色彩信息的数据库"
            },
            "table_field_info": {
                "id": {
                    "名称": "色彩库id",
                    "备注": "唯一id方便增删改查",
                    "主键": True,
                    "自增长": True,
                    "索引": None,
                    "字段类型": "INTEGER",
                    "字段长度": None,
                    "htmlcrud": {
                        "lhp_from1": {
                            "select": {
                                "key": "lhp_from1_edit_lhp_text",
                                "value": "{}"
                            }
                        },
                        "lhp_table2": {
                            "check": {
                                "key": {
                                    "show_lhp_color": False,
                                    "show_lhp_img": False,
                                    "show_lhp_line": False,
                                    "show_lhp_text": True,
                                    "show_lhp_text_by_dict": False,
                                    "show_lhp_xtext": False
                                },
                                "value": {
                                    "show_lhp_color": "{}",
                                    "show_lhp_img": "{}",
                                    "show_lhp_line": "{}",
                                    "show_lhp_text": "{}",
                                    "show_lhp_text_by_dict": "{}",
                                    "show_lhp_xtext": "{}"
                                }
                            }
                        }
                    }
                },
                "name": {
                    "名称": "色彩名称",
                    "备注": "色彩名称方便客户选择",
                    "主键": False,
                    "自增长": None,
                    "自定义_默认值": None,
                    "索引": True,
                    "字段类型": "VARCHAR",
                    "字段长度": [
                        0,
                        10
                    ],
                    "htmlcrud": {
                        "lhp_from1": {
                            "select": {
                                "key": "lhp_from1_edit_lhp_text",
                                "value": "{}"
                            }
                        },
                        "lhp_table2": {
                            "check": {
                                "key": {
                                    "show_lhp_color": False,
                                    "show_lhp_img": False,
                                    "show_lhp_line": False,
                                    "show_lhp_text": True,
                                    "show_lhp_text_by_dict": False,
                                    "show_lhp_xtext": False
                                },
                                "value": {
                                    "show_lhp_color": "{}",
                                    "show_lhp_img": "{}",
                                    "show_lhp_line": "{}",
                                    "show_lhp_text": "{}",
                                    "show_lhp_text_by_dict": "{}",
                                    "show_lhp_xtext": "{}"
                                }
                            }
                        }
                    }
                },
                "color_code": {
                    "名称": "颜色代号",
                    "备注": "颜色代号例如: #FFFFFF",
                    "主键": False,
                    "自增长": None,
                    "自定义_默认值": None,
                    "索引": True,
                    "字段类型": "VARCHAR",
                    "字段长度": [
                        0,
                        10
                    ],
                    "htmlcrud": {
                        "lhp_from1": {
                            "select": {
                                "key": "edit_lhp_color",
                                "value": "{\"button_name\":\"选择颜色\"}"
                            }
                        },
                        "lhp_table2": {
                            "check": {
                                "key": {
                                    "show_lhp_color": True,
                                    "show_lhp_img": False,
                                    "show_lhp_line": False,
                                    "show_lhp_text": False,
                                    "show_lhp_text_by_dict": False,
                                    "show_lhp_xtext": False
                                },
                                "value": {
                                    "show_lhp_color": "\"{}\"",
                                    "show_lhp_img": "\"{}\"",
                                    "show_lhp_line": "\"{}\"",
                                    "show_lhp_text": "\"{}\"",
                                    "show_lhp_text_by_dict": "\"{}\"",
                                    "show_lhp_xtext": "\"{}\""
                                }
                            }
                        }
                    }
                },
                "create_time": {
                    "名称": "创建时间",
                    "备注": "用于记录这条数据的创建时间，方便追溯",
                    "主键": False,
                    "自增长": None,
                    "自定义_默认值": None,
                    "索引": True,
                    "字段类型": "DATETIME",
                    "字段长度": None,
                    "htmlcrud": {
                        "lhp_from1": {
                            "select": {
                                "key": "None",
                                "value": "{}"
                            }
                        },
                        "lhp_table2": {
                            "check": {
                                "key": {
                                    "show_lhp_color": False,
                                    "show_lhp_img": False,
                                    "show_lhp_line": False,
                                    "show_lhp_text": True,
                                    "show_lhp_text_by_dict": False,
                                    "show_lhp_xtext": False
                                },
                                "value": {
                                    "show_lhp_color": "{}",
                                    "show_lhp_img": "{}",
                                    "show_lhp_line": "{}",
                                    "show_lhp_text": "{}",
                                    "show_lhp_text_by_dict": "{}",
                                    "show_lhp_xtext": "{}"
                                }
                            }
                        }
                    }
                },
                "modify_time": {
                    "名称": "修改时间",
                    "备注": "用于记录这条数据的修改时间，方便追溯",
                    "主键": False,
                    "自增长": None,
                    "自定义_默认值": None,
                    "索引": True,
                    "字段类型": "DATETIME",
                    "update_modify_time": True,
                    "字段长度": None,
                    "htmlcrud": {
                        "lhp_from1": {
                            "select": {
                                "key": "None",
                                "value": "{}"
                            }
                        },
                        "lhp_table2": {
                            "check": {
                                "key": {
                                    "show_lhp_color": False,
                                    "show_lhp_img": False,
                                    "show_lhp_line": False,
                                    "show_lhp_text": True,
                                    "show_lhp_text_by_dict": False,
                                    "show_lhp_xtext": False
                                },
                                "value": {
                                    "show_lhp_color": "{}",
                                    "show_lhp_img": "{}",
                                    "show_lhp_line": "{}",
                                    "show_lhp_text": "{}",
                                    "show_lhp_text_by_dict": "{}",
                                    "show_lhp_xtext": "{}"
                                }
                            }
                        }
                    }
                },
                "create_people_id": {
                    "名称": "创建人id",
                    "备注": "用于记录这条数据的创建人，方便追溯",
                    "主键": False,
                    "自增长": None,
                    "自定义_默认值": None,
                    "索引": True,
                    "字段类型": "INTEGER",
                    "字段长度": None,
                    "htmlcrud": {
                        "lhp_from1": {
                            "select": {
                                "key": "None",
                                "value": "{}"
                            }
                        },
                        "lhp_table2": {
                            "check": {
                                "key": {
                                    "show_lhp_color": False,
                                    "show_lhp_img": False,
                                    "show_lhp_line": False,
                                    "show_lhp_text": True,
                                    "show_lhp_text_by_dict": False,
                                    "show_lhp_xtext": False
                                },
                                "value": {
                                    "show_lhp_color": "{}",
                                    "show_lhp_img": "{}",
                                    "show_lhp_line": "{}",
                                    "show_lhp_text": "{}",
                                    "show_lhp_text_by_dict": "{}",
                                    "show_lhp_xtext": "{}"
                                }
                            }
                        }
                    }
                },
                "modify_people_id": {
                    "名称": "修改人id",
                    "备注": "用于记录这条数据的修改人，方便追溯",
                    "主键": False,
                    "自增长": None,
                    "自定义_默认值": None,
                    "索引": True,
                    "字段类型": "INTEGER",
                    "字段长度": None,
                    "htmlcrud": {
                        "lhp_from1": {
                            "select": {
                                "key": "None",
                                "value": "{}"
                            }
                        },
                        "lhp_table2": {
                            "check": {
                                "key": {
                                    "show_lhp_color": False,
                                    "show_lhp_img": False,
                                    "show_lhp_line": False,
                                    "show_lhp_text": True,
                                    "show_lhp_text_by_dict": False,
                                    "show_lhp_xtext": False
                                },
                                "value": {
                                    "show_lhp_color": "{}",
                                    "show_lhp_img": "{}",
                                    "show_lhp_line": "{}",
                                    "show_lhp_text": "{}",
                                    "show_lhp_text_by_dict": "{}",
                                    "show_lhp_xtext": "{}"
                                }
                            }
                        }
                    }
                },
                "notes": {
                    "名称": "备注",
                    "备注": "记录这条数据需要注意的事项",
                    "主键": False,
                    "自增长": None,
                    "自定义_默认值": "",
                    "索引": True,
                    "字段类型": "TEXT",
                    "字段长度": None,
                    "htmlcrud": {
                        "lhp_from1": {
                            "select": {
                                "key": "lhp_from_edit_lhp_text",
                                "value": "{}"
                            }
                        },
                        "lhp_table2": {
                            "check": {
                                "key": {
                                    "show_lhp_color": False,
                                    "show_lhp_img": False,
                                    "show_lhp_line": False,
                                    "show_lhp_text": True,
                                    "show_lhp_text_by_dict": False,
                                    "show_lhp_xtext": False
                                },
                                "value": {
                                    "show_lhp_color": "{}",
                                    "show_lhp_img": "{}",
                                    "show_lhp_line": "{}",
                                    "show_lhp_text": "{}",
                                    "show_lhp_text_by_dict": "{}",
                                    "show_lhp_xtext": "{}"
                                }
                            }
                        }
                    }
                }
            },
            "htmlcrud": {
                "lhp_from1": True,
                "lhp_table2": True
            }
        }
    },
    "page_config": {
        "0": {
            "page_base_info": {
                "page_name": "主页",
                "url_flag": True,
                "url": "/home",
                "page_idx": 9
            },
            "page_use_compontent": {
                "page": {
                    "ch_name": "总布局",
                    "use_compontent": "gu_jia1",
                    "child": {
                        "0": {
                            "ch_name": "纵向骨架1",
                            "use_compontent": "gu_jia2",
                            "data": {
                                "width": "100%",
                                "height": "100%",
                                "edit_flag": True
                            },
                            "idx": 1,
                            "child": {
                                "0": {
                                    "ch_name": "基础侧边栏1",
                                    "use_compontent": "cebianlan1",
                                    "data": {
                                        "var_name": "",
                                        "width": "auto",
                                        "height": "100%",
                                        "data": [
                                            {
                                                "name": "控制系统",
                                                "icon": "icon-kongzhitai",
                                                "click_func": ""
                                            },
                                            {
                                                "name": "控制中心",
                                                "icon": "icon-kongzhitai",
                                                "click_func": ""
                                            },
                                            {
                                                "name": "工艺设定",
                                                "icon": "icon-tree_main_factory",
                                                "click_func": ""
                                            },
                                            {
                                                "name": "产品库1",
                                                "icon": "icon-pinzhong",
                                                "click_func": ""
                                            },
                                            {
                                                "name": "产品库2",
                                                "icon": "icon-huabi",
                                                "click_func": ""
                                            },
                                            {
                                                "name": "用户中心",
                                                "icon": "icon-yonghu",
                                                "click_func": ""
                                            },
                                            {
                                                "name": "日志中心",
                                                "icon": "icon-rizhi",
                                                "click_func": ""
                                            }
                                        ]
                                    },
                                    "idx": 2,
                                    "child": {}
                                },
                                "1": {
                                    "ch_name": "横向骨架1",
                                    "use_compontent": "gu_jia1",
                                    "data": {
                                        "width": "100%",
                                        "height": "100%",
                                        "edit_flag": True
                                    },
                                    "idx": 3,
                                    "child": {
                                        "0": {
                                            "ch_name": "横向骨架1",
                                            "use_compontent": "gu_jia1",
                                            "data": {
                                                "width": "100%",
                                                "height": "5%",
                                                "edit_flag": True
                                            },
                                            "idx": 4,
                                            "child": {
                                                "0": {
                                                    "ch_name": "语言下拉框1",
                                                    "use_compontent": "lhp_language_drop_down1",
                                                    "data": {
                                                        "var_name": "",
                                                        "width": "auto",
                                                        "height": "60px"
                                                    },
                                                    "idx": 6,
                                                    "child": {}
                                                },
                                                "1": {
                                                    "ch_name": "用户下拉框1",
                                                    "use_compontent": "lhp_user_drop_down1",
                                                    "data": {
                                                        "var_name": "",
                                                        "width": "auto",
                                                        "height": "60px"
                                                    },
                                                    "idx": 7,
                                                    "child": {}
                                                }
                                            }
                                        },
                                        "1": {
                                            "ch_name": "横向骨架1",
                                            "use_compontent": "gu_jia1",
                                            "data": {
                                                "width": "100%",
                                                "height": "95%",
                                                "edit_flag": True
                                            },
                                            "idx": 5,
                                            "child": {
                                                "0": {
                                                    "ch_name": "基础标签页1",
                                                    "use_compontent": "lhp_labs",
                                                    "data": {
                                                        "var_name": "",
                                                        "width": "100%",
                                                        "height": "92%",
                                                        "edit_flag": True,
                                                        "data": [
                                                            {
                                                                "name": "标签页1",
                                                                "load_url": "",
                                                                "func_name": ""
                                                            },
                                                            {
                                                                "name": "标签页2",
                                                                "load_url": "",
                                                                "func_name": ""
                                                            },
                                                            {
                                                                "name": "标签页3",
                                                                "load_url": "",
                                                                "func_name": ""
                                                            },
                                                            {
                                                                "name": "标签页4",
                                                                "load_url": "",
                                                                "func_name": ""
                                                            },
                                                            {
                                                                "name": "标签页5",
                                                                "load_url": "",
                                                                "func_name": ""
                                                            }
                                                        ]
                                                    },
                                                    "idx": 8,
                                                    "child": {}
                                                },
                                                "1": {
                                                    "ch_name": "底部状态栏1",
                                                    "use_compontent": "lhp_footer1",
                                                    "data": {
                                                        "var_name": "",
                                                        "width": "auto",
                                                        "height": "8%"
                                                    },
                                                    "idx": 9,
                                                    "child": {}
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "mask": {}
            }
        }
    },
    "mqtt": {
        "host": "127.0.0.1",
        "port": 1883,
        "username": "shhooserver001",
        "passwd": "shhoo2018",
        "client_name": "python_flow_01",
        "priority_low_max": 30,
        "priority_low_time": 1,
        "priority_Medium_max": 30,
        "priority_Medium_time": 1,
        "base_topic": "E00120220718171201",
        "init_type": 0,
        "init_params": {
            "topic_dct": {
                "1": "无用参数",
                "2": "设备号",
                "3": "通信代号"
            },
            "recv_data": {
                "加工釜状态上报": {
                    "message_id": None,
                    "topic_dct": None,
                    "_match_topic": {
                        "通信代号": "ack_status",
                        "设备号": [
                            "re",
                            "^\\s*PP"
                        ]
                    },
                    "recv_data": {
                        "process": [
                            "int",
                            0,
                            999999999
                        ],
                        "mode": [
                            "int",
                            0,
                            999999999
                        ],
                        "pH": [
                            "int",
                            0,
                            999999999
                        ],
                        "temp": [
                            "float",
                            0,
                            999999999
                        ],
                        "level": [
                            "float",
                            0,
                            999999999
                        ],
                        "LID_STA": [
                            "int",
                            0,
                            999999999
                        ],
                        "BT1_STA": [
                            "int",
                            0,
                            999999999
                        ],
                        "PI1": [
                            "int",
                            0,
                            999999999
                        ],
                        "PO1": [
                            "int",
                            0,
                            999999999
                        ],
                        "PC1": [
                            "int",
                            0,
                            999999999
                        ],
                        "PO2": [
                            "int",
                            0,
                            999999999
                        ],
                        "MA_STA": [
                            "int",
                            0,
                            999999999
                        ],
                        "ts": [
                            "float",
                            0,
                            50
                        ],
                        "message_id\"": [
                            "int",
                            0,
                            999999999
                        ]
                    },
                    "priority": 0,
                    "handle_db": {
                        "res": None,
                        "handle_dct": {
                            "0": {
                                "db_handle_type": "put",
                                "db_name": "PP_db",
                                "condition_field": [
                                    [
                                        "device",
                                        "=",
                                        "topic_dct.设备号"
                                    ]
                                ],
                                "put_field_dct": {
                                    "process": "recv_data.process",
                                    "mode": "recv_data.mode",
                                    "pH": "recv_data.pH",
                                    "temp": "recv_data.temp",
                                    "level": "recv_data.level"
                                }
                            }
                        }
                    }
                },
                "外围设备状态上报": {
                    "topic_dct": None,
                    "_match_topic": {
                        "通信代号": "ack_status",
                        "设备号": "PER1"
                    },
                    "_recv_data_before": {
                        "0": {
                            "func": "self.to_list1",
                            "kwargs": {
                                "key_index": 1,
                                "split_str": "_",
                                "replact_dct": {
                                    "LEVEL": "level "
                                }
                            }
                        }
                    },
                    "recv_data": {
                        "process": [
                            "int",
                            0,
                            999999999
                        ],
                        "mode": [
                            "int",
                            0,
                            999999999
                        ],
                        "pH": [
                            "int",
                            0,
                            999999999
                        ],
                        "temp": [
                            "float",
                            0,
                            999999999
                        ],
                        "level": [
                            "float",
                            0,
                            999999999
                        ],
                        "LID_STA": [
                            "int",
                            0,
                            999999999
                        ],
                        "BT1_STA": [
                            "int",
                            0,
                            999999999
                        ],
                        "PI1": [
                            "int",
                            0,
                            999999999
                        ],
                        "PO1": [
                            "int",
                            0,
                            999999999
                        ],
                        "PC1": [
                            "int",
                            0,
                            999999999
                        ],
                        "PO2": [
                            "int",
                            0,
                            999999999
                        ],
                        "MA_STA": [
                            "int",
                            0,
                            999999999
                        ],
                        "ts": [
                            "float",
                            0,
                            50
                        ],
                        "message_id\"": [
                            "int",
                            0,
                            999999999
                        ]
                    },
                    "priority": 0,
                    "handle_db": {
                        "res": None,
                        "handle_dct_lst_data": None,
                        "handle_dct_lst": [
                            {
                                "match": [
                                    "re",
                                    "^\\s*PP"
                                ],
                                "db_dct": {
                                    "db_name": "PP_db",
                                    "condition_field": [
                                        [
                                            "device",
                                            "=",
                                            "$key$"
                                        ]
                                    ],
                                    "put_field_dct": "$val$"
                                }
                            },
                            {
                                "match": [
                                    "re",
                                    ".*"
                                ],
                                "db_dct": {
                                    "db_name": "CP_db",
                                    "condition_field": [
                                        [
                                            "device",
                                            "=",
                                            "$key$"
                                        ]
                                    ],
                                    "put_field_dct": "$val$"
                                }
                            }
                        ]
                    }
                },
                "加工釜获取当前工艺": {
                    "topic_dct": None,
                    "_match_topic": {
                        "通信代号": "get_process",
                        "设备号": [
                            "re",
                            "^\\s*PP"
                        ]
                    },
                    "recv_data": {
                        "message_id\"": [
                            "int",
                            0,
                            999999999
                        ]
                    },
                    "priority": 2,
                    "handle_db": {
                        "res": None,
                        "handle_dct": {
                            "0": {
                                "db_handle_type": "get",
                                "db_name": "PP_db",
                                "condition_field": [
                                    [
                                        "device",
                                        "=",
                                        "topic_dct.设备号"
                                    ]
                                ],
                                "select_field": [
                                    "variety_name"
                                ]
                            },
                            "1": {
                                "db_handle_type": "get",
                                "db_name": "variety_db",
                                "condition_field": [
                                    [
                                        "name",
                                        "=",
                                        "handle_db.res.0.data.0.variety_name"
                                    ]
                                ],
                                "select_field": [
                                    "p6_CP",
                                    "p2_delay",
                                    "p2_highLevel",
                                    "p3_cyclePump_runTime",
                                    "p3_cyclePump_pauseTime",
                                    "p3_heatingPara",
                                    "p3_usPara",
                                    "p3_totalTime",
                                    "p4_closeTimout",
                                    "p5_clearCount",
                                    "p5_usPara",
                                    "p5_closeTimout",
                                    "p6_delay",
                                    "p6_maxLevel",
                                    "p7_heatingPara",
                                    "p7_usPara",
                                    "p7_totalTime",
                                    "p8_closeTimout",
                                    "p10_closeTimeout"
                                ]
                            },
                            "2": {
                                "db_handle_type": "get",
                                "db_name": "CP_db",
                                "condition_field": [
                                    [
                                        "device",
                                        "=",
                                        "handle_db.res.1.data.0.p6_CP"
                                    ]
                                ],
                                "select_field": [
                                    "device"
                                ]
                            }
                        },
                        "db_return": True
                    },
                    "res_info": {
                        "topic": "E00120220718171201/PF/PP01/set_process",
                        "response": {
                            "p2_delay": "handle_db.res.1.data.0.p2_delay",
                            "p2_highLevel": "handle_db.res.1.data.0.p2_highLevel",
                            "p3_cyclePump_runTime": "handle_db.res.1.data.0.p3_cyclePump_runTime",
                            "p3_cyclePump_pauseTime": "handle_db.res.1.data.0.p3_cyclePump_pauseTime",
                            "p3_heatingPara": "handle_db.res.1.data.0.p3_heatingPara",
                            "p3_usPara": "handle_db.res.1.data.0.p3_usPara",
                            "p3_totalTime": "handle_db.res.1.data.0.p3_totalTime",
                            "p4_closeTimout": "handle_db.res.1.data.0.p4_closeTimout",
                            "p5_clearCount": "handle_db.res.1.data.0.p5_clearCount",
                            "p5_usPara": "handle_db.res.1.data.0.p5_usPara",
                            "p5_closeTimout": "handle_db.res.1.data.0.p5_closeTimout",
                            "p6_CP": "handle_db.res.2.data.0.device",
                            "p6_delay": "handle_db.res.1.data.0.p6_delay",
                            "p6_maxLevel": "handle_db.res.1.data.0.p6_maxLevel",
                            "p7_heatingPara": "handle_db.res.1.data.0.p7_heatingPara",
                            "p7_usPara": "handle_db.res.1.data.0.p7_usPara",
                            "p7_totalTime": "handle_db.res.1.data.0.p7_totalTime",
                            "p8_closeTimout": "handle_db.res.1.data.0.p8_closeTimout",
                            "p10_closeTimeout": "handle_db.res.1.data.0.p10_closeTimeout",
                            "message_id": "recv_data.message_id"
                        }
                    }
                }
            }
        }
    },
    "web_template_path": "f:\\昆明兑悦科技有限公司\\work_space(4)\\easy_edit\\project\\web\\web_template",
    "bianji_html_path": "f:\\昆明兑悦科技有限公司\\work_space(4)\\easy_edit\\project\\web\\bianji.html",
    "test_html_path": "f:\\昆明兑悦科技有限公司\\work_space(4)\\easy_edit\\project\\web\\test.html",
    "static": "\\static",
    "temp_dir": "f:\\昆明兑悦科技有限公司\\work_space(4)\\easy_edit\\project\\web\\temp",
    "_temp_page_names": {
        "主页": "0"
    }
}
    json2yaml(obj,os.path.dirname(os.path.abspath(__file__))+os.sep+'temp_dir'+os.sep+'json2yaml.yaml')